﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="config_email.aspx.cs" Inherits="Forum.Web.Admin.email.config_email" %>


<%@ Register assembly="Public.Control" namespace="Public.Control" tagprefix="cc1" %>

<html>
<head id="Head1" runat="server">
    <title></title>
<link href="../styles/control.css" type="text/css" rel="stylesheet" />
    <link href="../styles/dntmanager.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
#td_l {
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: dashed;
	border-left-style: dashed;
	border-right-color: #CCCCCC;
	border-left-color: #CCCCCC;
}
.STYLE1 {color: #FF0000}
-->
    </style>
</head>
<script src="../js/public.js" type="text/javascript"></script>
<body  class="ContentBody">
<div class="ManagerForm">
        <form id="Form1" runat="server">
        <fieldset>
            <legend style="background: url(../images/icons/icon41.jpg) no-repeat 6px 50%;">SMTP配置</legend>
            <table cellspacing="0" cellpadding="4" width="100%" align="center">
                <tr>
                    <td class="panelbox" align="left" width="50%">
                        <table width="100%">
                            <tr>
                                <td style="width: 80px">
                                    SMTP服务器:
                                </td>
                                <td>
                                    <cc1:TextBox ID="smtp" runat="server" Width="200"></cc1:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    系统邮箱名称:
                                </td>
                                <td>
                                    <cc1:TextBox ID="sysemail" runat="server" Width="200"></cc1:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    系统邮箱密码:
                                </td>
                                <td>
                                    <cc1:TextBox ID="password" runat="server"></cc1:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td class="panelbox" align="right" width="50%">
                        <table width="100%">
                            <tr>
                                <td style="width: 80px">
                                    SMTP端口:
                                </td>
                                <td>
                                    <cc1:TextBox ID="port" runat="server"></cc1:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    用户名:
                                </td>
                                <td>
                                    <cc1:TextBox ID="userName" runat="server" Width="200"></cc1:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    发送邮件程序:
                                </td>
                                <td>
                                    <select name="smtpemail" id="smtpemail"  runat="server">
                                        <option value="Forum.Plugin.Mail.SmtpMail,Forum.PlugIn.dll">Forum邮件发送程序</option>
                                        <option value="Forum.Plugin.Mail.SysMailMessage,Forum.Plugin.Mail.SysMail.dll">.net邮件发送程序</option>
                                    </select>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <cc1:Button ID="Button3" runat="server" onclick="Button3_Click"  ButtonImgUrl="../images/submit.gif" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend style="background: url(../images/icons/icon40.jpg) no-repeat 6px 50%;">测试邮件配置</legend>
            <table cellspacing="0" cellpadding="4" width="100%" align="center">
                <tr>
                    <td style="width: 80px">
                        EMAIL:
                    </td>
                    <td style="width: 350px">
                        <cc1:TextBox ID="testEmail" runat="server" Width="250px"></cc1:TextBox>
        <asp:Label ID="Label1" runat="server" ForeColor="Red" ></asp:Label>
                    </td>
                    <td>
                        <cc1:Button ID="Button4" runat="server" Text=" 发送测试邮件"  ButtonImgUrl="../images/submit.gif" 
                            onclick="Button4_Click" />
                    </td>
                </tr>
            </table>
        </fieldset>
        </form>
    </div>
</body>
</html>